﻿using Infrastructure.DDD;
using System.ComponentModel.DataAnnotations.Schema;

namespace Application.Entities
{
    [Table("job_log_operation")]
    public class SysLogOperation : EntityWithoutUpdateTime
    {
        //who where what[Api、note]
        //ip为[ip] 的 zs [何时] [新增用户]，调用了[user/add]接口
        //ip为[ip] 的 zs [何时] [登录系统] ，调用了[user/login]接口
        [Column(TypeName = "varchar(100)")]
        public string Title { get; set; }
        [Column(TypeName = "varchar(100)")]
        public string Api { get; set; }
        [Column(TypeName = "varchar(100)")]
        public string Ip { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        [Column(TypeName = "varchar(100)")]
        public string Region { get; set; }
        public long OperatorId { get; set; }
        [Column(TypeName = "varchar(100)")]
        public string OperatorName { get; set; }
        [Column(TypeName = "varchar(500)")]
        public string Note { get; set; }
    }
}
